@extends('home.m.m2.public.public')

@section('content')
    <div class="sidebar">
        <div class="sb_box">
            <div class="active" id="showproduct">
                <div class="pshow">
                    <ul class="showproduct_slides">
                        @foreach($info['images'] as $value)
                            <li><img src="{{ $value }}"/></li>
                        @endforeach
                    </ul>
                </div>
                <h3 class="Tabtitle">
                    <div class="l ">{{ $info['name'] }}详细描述</div>
                </h3>
                <div class="editor">
                    <div class="mb_Tabbox mb_Tabbox_0 ">
                        <div>{!! $info['describe'] !!}</div>
                        <div class="clear"></div>
                    </div>
                </div>
                <div class="none">点击次数：{{ $info['page_view'] }}</div>
                <div class="met_page">
                    <ul class='preul'>
                        @if(!empty($prev))
                            <li class='preinfo'>
                                <a href='{{ route('info',['product',$prev['id']]) }}'>
                                    <p class='pret'>上一条</p>
                                    <p class='pres'>{{ $prev['name'] }}</p>
                                </a>
                            </li>
                        @endif
                        @if(!empty($next))
                            <li class='nextinfo'>
                                <a href='{{ route('info',['product',$next['id']]) }}'>
                                    <p class='pret'>下一条</p>
                                    <p class='pres'>{{ $next['name'] }}</p>
                                </a>
                            </li>
                        @endif
                    </ul>
                </div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
@endsection